import request from '@/utils/request'

// 查询research列表
export function listResearch(query) {
  return request({
    url: '/teacher/research/list',
    method: 'get',
    params: query
  })
}

// 查询research详细
export function getResearch(researchId) {
  return request({
    url: '/teacher/research/' + researchId,
    method: 'get'
  })
}

// 新增research
export function addResearch(data) {
  return request({
    url: '/teacher/research/add',
    method: 'post',
    data: data
  })
}

// 修改research
export function updateResearch(data) {
  return request({
    url: '/teacher/research/update',
    method: 'post',
    data: data
  })
}

// 删除research
export function delResearch(researchId) {
  return request({
    url: '/teacher/research/' + researchId,
    method: 'post'
  })
}
